<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test worker</title>
    
    <script src="../jquery.js"></script>
    <script src="../browser.js"></script>
    <script src="../angular.js"></script>
    <script src="../es6-module-loader.js"></script>
    <script>
        System.transpiler = "babel";
        
        System.babelOptions = {
            stage: 0
        };
        
        const a = 10,
              b = 1000 / a;
        
        console.warn(b); 
        System.import("./hc-worker-proxy.es6")
            .then(function(WorkerProxy) {
                "use strict";
            
                let wp = new WorkerProxy.WorkerProxy("dummy.js");
                
                var func = function(arr) {
                    return arr.sort(function(a, b) {return a - b;});
                }
                
                var data = [23,4,7,9,2,14,6,651,87,41,7798,24];
            
                wp.onmessage = function(event) {
                    var data = event.data; 
                }; 
                 
                wp.postMessage({job: "i am func", data: data}); 
            });
        
         
    </script>
    
</head>
<body>
</body>
</html>